import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;


public class TestCase {

	public static void main(String args[])
	{
		try {
			Document doc=Jsoup.parse(Http.get("http://www.xaufe.edu.cn/Announcement/2016/54135831901.html"));
		Elements e=doc.select("div#xaufe_middiv");
		System.out.println(e);
		
		} catch (MalformedURLException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
		
		
		
		
		InfoAnnoucement a=new InfoAnnoucement();
		try {
			a.next();
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
//		NewsRequest req=new NewsRequest();
//		//log(req.getNewsList());
//		req.get()
		
		
	}
	
	static void log(ArrayList<NewsDAO> list)
	{
		for(int i=0;i<list.size();i++)
		{
			System.out.println(list.get(i).name);
		}
		
	}
	
	
}
